package com.ruibang.glass.portal.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
@ApiModel
public class RoleParams {

    private String roleId;

    @NotBlank(message = "角色名称不能为空")
    @ApiModelProperty(value = "角色名称", name = "roleName", required = true)
    private String roleName;

    @ApiModelProperty(value = "父角色id,添加一级角色时,父id为0", name = "parentRoleId", required = true)
    private String parentRoleId;

    @ApiModelProperty(value = "序号")
    private String orderNum;

    private String description;

    @ApiModelProperty(value = "角色菜单list", name = "menuIds", required = true)
    private List<String> menuIds;

    @ApiModelProperty(value = "权限等级")
    private String level;

}
